Re: [NTG-context] Issue with location parameter in matrix

2023-01-09 Thread Jacob Kauffmann via ntg-context
One trick is to wrap the matrices inside a framed environment and putting the location parameter there: \starttext \startformula \startmatrix[left={\left(},right={\right)}] \NC A \NC B \NR \NC C \NC D \NR \stopmatrix = \startframed[location=top,frame=no,offset=none] \startmatrix[left={\left

[NTG-context] Issue with location parameter in matrix

2023-01-06 Thread Jacob Kauffmann via ntg-context
=bottom and location=top, but both give the same error. Do you have any ideas on how I can get the matrix in the desired locations? Thank you in advance for your help. Best regards, Jacob \starttext \startformula \startmatrix[left={\left(},right={\right)}] \NC A \NC B \NR \NC C \NC D \NR

Re: [NTG-context] Bug in alignment with LMTX version 2022.01.15 17:32

2022-01-18 Thread Otared Kavian via ntg-context
{\bi n}} \NC = 0 \NC\qquad\text{on }\, \partial \Omega\times (0,+\infty)\NR \NC u(x,0) \NC = u_{0}(x)\NC\qquad\text{in }\, \Omega.\NR \stopalignedcases \stopformula \startformula \startmatrix \NC ABC\NC ABC\NC ABC\NR \NC AA \NC AA \NC AA \NR \stopmatrix

Re: [NTG-context] Bug in alignment with LMTX version 2022.01.15 17:32

2022-01-17 Thread Aditya Mahajan via ntg-context
ega.\NR > \stopalignedcases > \stopformula > > \stoptext > % end bug-alignment.tex I confirm that this is a bug, which was not there in the version from mid Dec. It appears that the align key does not have any effect. Here's a simpler example: \definemathmatrix[matrix]

Re: [NTG-context] mathmatrix and internal lines

2020-11-26 Thread Otared Kavian
etween two rows of a matrix > %D \type{\VR} is used in place of \type{\NC} to draw a vertical rule between > two columns of a matrix > %D each macro takes an optional parameter giving the rule dimensions > %D Example > %D \type{\startmatrix \NC A \VR[depth 2mm] B \NR \HR[height 0.6pt

Re: [NTG-context] mathmatrix and internal lines

2020-11-26 Thread Jean-Philippe Rey
%D \macros{HR, VR} %D \type{\HR} draws a horizontal rule between two rows of a matrix %D \type{\VR} is used in place of \type{\NC} to draw a vertical rule between two columns of a matrix %D each macro takes an optional parameter giving the rule dimensions %D Example %D \type{\startmatrix \NC

Re: [NTG-context] Vertical lines in matrices

2020-05-04 Thread Jeong Dal
Dear Weber Mattias, Please see page 10 of “mathalign.pdf” made by Aditya. He showed the way of writing aligned math including matrices. For example, \startformula \startmatrix[left={\left(\,},right={\,\right)}] \NC 1 \NC 0 \NC 0 \NR \NC 0 \NC 1 \NC 0 \NR \NC 0 \NC 0 \NC 1

Re: [NTG-context] Vertical lines in matrices

2020-05-04 Thread Weber, Matthias
> Please see page 10 of “mathalign.pdf” made by Aditya. > He showed the way of writing aligned math including matrices. > For example, > > \startformula > > \startmatrix[left={\left(\,},right={\,\right)}] > > \NC 1 \NC 0 \NC 0 \NR > \NC 0 \NC

[NTG-context] Vertical lines in matrices

2020-05-03 Thread Weber, Matthias
whether using tables in math mode is the proper way of doing things. \startmatrix seems to ignore a \VL. Any. suggestions? Thanks, Matthias ___ If your question is of interest to others as well, please add an entry

Re: [NTG-context] Bug when mathmatrix is used inside mathalign

2019-03-27 Thread Aditya Mahajan
~ sequence ~ of ~ terms     \NR     \NC y     \NC = ok ~ left     \NR     \NC \startmatrix[left={\left\lbrack},right={\right\rbrack}]     \NC x \NR     \NC y \NR     \stopmatrix     \NC = why ~ right?     \NR     \NC y

Re: [NTG-context] Bug when mathmatrix is used inside mathalign

2019-03-27 Thread Hans Hagen
    \NC y     \NC = ok ~ left     \NR     \NC \startmatrix[left={\left\lbrack},right={\right\rbrack}]     \NC x \NR     \NC y \NR     \stopmatrix     \NC = why ~ right?     \NR     \NC y     \NC = ok ~ left ~ again     \NR

Re: [NTG-context] Bug when mathmatrix is used inside mathalign

2019-03-27 Thread Hans Hagen
    \NC y     \NC = ok ~ left     \NR     \NC \startmatrix[left={\left\lbrack},right={\right\rbrack}]     \NC x \NR     \NC y \NR     \stopmatrix     \NC = why ~ right?     \NR     \NC y     \NC = ok ~ left ~ again     \NR

[NTG-context] Bug when mathmatrix is used inside mathalign

2019-03-27 Thread Aditya Mahajan
\NC \startmatrix[left={\left\lbrack},right={\right\rbrack}] \NC x \NR \NC y \NR \stopmatrix \NC = why ~ right? \NR \NC y \NC = ok ~ left ~ again \NR \stopalign \stopformula \stoptext gives https

Re: [NTG-context] Tagging and Math Matrix

2017-09-06 Thread Christoph Reller
hristoph Reller wrote: > > > On Mon, Dec 28, 2015 at 3:45 PM Christoph Reller > > > <christoph.rel...@gmail.com> wrote: > > > > > > There seems to be a problem with the structure information added > > > when using \start

Re: [NTG-context] Tagging and Math Matrix

2017-09-06 Thread Hans Hagen
toph.rel...@gmail.com <mailto:christoph.rel...@gmail.com> <mailto:christoph.rel...@gmail.com <mailto:christoph.rel...@gmail.com>>>   wrote: > > There seems to be a problem with the structure information added > when using \startmatrix: > > A

Re: [NTG-context] Tagging and Math Matrix

2017-09-06 Thread Christoph Reller
> > > > There seems to be a problem with the structure information added > > when using \startmatrix: > > > > A fix would be very much appreciated. > > should be ok now > Thank you Hans for this fix! There seems to be, however, still a minor issue with a more

Re: [NTG-context] Tagging and Math Matrix

2017-09-05 Thread Hans Hagen
On 8/30/2017 9:45 AM, Christoph Reller wrote: On Mon, Dec 28, 2015 at 3:45 PM Christoph Reller <christoph.rel...@gmail.com <mailto:christoph.rel...@gmail.com>>   wrote: There seems to be a problem with the structure information added when using \startmatrix: \

Re: [NTG-context] Tagging and Math Matrix

2017-08-30 Thread Christoph Reller
On Mon, Dec 28, 2015 at 3:45 PM Christoph Reller <christoph.rel...@gmail.com > wrote: > There seems to be a problem with the structure information added when using > \startmatrix: > > \setuptagging[state=start] > \starttext > \math{ > \startmatrix >

[NTG-context] Bug in mathmatrix and possible fix

2017-08-22 Thread Henri
!    \egroup    \mathmatrixright    \endgroup    \popmacro\math_matrix_NC} % ungrouped! \protect \definemathmatrix[pmatrix][left={\left(}, right={\right)}, distance=2em] \def\matOne{\startmatrix\NC 1 \NC 0 \NR\NC 0 \NC 1\NR\stopmatrix} \def\matTwo{\startmatrix\NC a\NR\NC b\NR\stopmatrix} \def\matThree

Re: [NTG-context] Bug in \placeformula

2016-09-02 Thread Otared Kavian
Hi Henri, Your are right there is an issue with \startmathcases…\stopmathcases: the equations are not numbered when using this structure. As a temporary solution you can use \startmatrix…\stopmatrix as in the following, or you can define your own \startalignedcases. \starttext \placeformula

[NTG-context] Tagging and Math Matrix

2015-12-28 Thread Christoph Reller
Hi, There seems to be a problem with the structure information added when using \startmatrix: \setuptagging[state=start] \starttext \math{ \startmatrix \NC A \NR \NC B \NR \stopmatrix} \stoptext The log reports an open chain: document>1 => mtr>1 => mtd>1 => mtr&g

Re: [NTG-context] Math alignment

2015-07-07 Thread Wolfgang Schuster
not seem to have any effect here. Can you see the effect of the alignment? \starttext \startformula \startmatrix[align={left,middle,right}] \NC a \NC b \NC c \NR \NC aa \NC bb \NC cc \NR \NC aaa \NC bbb \NC ccc \NR \stopmatrix \stopformula \stoptext Wolfgang

Re: [NTG-context] Math alignment

2015-07-07 Thread Hans Aberg
? \starttext \startformula \startmatrix[align={left,middle,right}] \NC a \NC b \NC c \NR \NC aa \NC bb \NC cc \NR \NC aaa \NC bbb \NC ccc \NR \stopmatrix \stopformula \stoptext Thanks. I know that example. I just noticed it seemed to have no effect in the other

Re: [NTG-context] multi-line equations with \left( and \right.

2014-10-07 Thread Wolfgang Schuster
anyone help me? You have to use the \startmatrix environment. - http://wiki.contextgarden.net/%5Cstartcases - http://dl.contextgarden.net/myway/mathalign.pdf Wolfgang ___ If your question is of interest to others

Re: [NTG-context] multi-line equations with \left( and \right.

2014-10-07 Thread Xan
={\,\right.}] \NC x - 2y + 2z \NC = 1 \NR \NC 2 x + y - z \NC = 2 \NR \NC 4 x - 3y + 6z \NC = 7 \NR \stopalign \stopformula but it does not work. Can anyone help me? You have to use the \startmatrix environment. - http://wiki.contextgarden.net/%5Cstartcases - http

Re: [NTG-context] multi-line equations with \left( and \right.

2014-10-07 Thread Otared Kavian
(\,},right={\,\right.}] \NC x - 2y + 2z \NC = 1 \NR \NC 2 x + y - z \NC = 2 \NR \NC 4 x - 3y + 6z \NC = 7 \NR \stopalign \stopformula but it does not work. Can anyone help me? You have to use the \startmatrix environment. - http://wiki.contextgarden.net/%5Cstartcases - http

Re: [NTG-context] Simple command with variable number of arguments

2014-05-23 Thread Jeong Dal
Dear Luigi and listers, Last year, I need to write a text for a linear algebra class. Since there are many \startmatrix … \stopmatrix and matrix calculations, I wrote a lua code which did matrix calculations and writing with a lot of help from this list. Using the code, I can write class

Re: [NTG-context] Simple command with variable number of arguments

2014-05-23 Thread Hans Hagen
On 5/23/2014 3:48 PM, Jeong Dal wrote: Dear Luigi and listers, Last year, I need to write a text for a linear algebra class. Since there are many \startmatrix … \stopmatrix and matrix calculations, I wrote a lua code which did matrix calculations and writing with a lot of help from this list

Re: [NTG-context] Struggling with ConTeXt

2012-08-20 Thread Olivier Binda
Many thanks for the enlightening answers. The explanations about xml solved question 1 and \startmatrix\stopmatrix solved question 4. I'm now crunching xml input and handling it half in lua and half in tex (and I'm verry happy about it). I'm still struggling with a few points though

Re: [NTG-context] Struggling with ConTeXt

2012-08-02 Thread Aditya Mahajan
the previous text, so the pdf and xml are fine in Context ? Why not use \startmathalign etc. See: http://dl.contextgarden.net/myway/mathalign.pdf Sorry, I meant, \startmathmatrix (or \startmatrix) etc. Aditya

[NTG-context] How to draw a red frame of a row in a matrix?

2012-07-25 Thread dalyoung
Dear all, I made a matrix as follows and I'd like to draw a red frame over the i-th row in a matrix. \startformula \startmatrix[left={\left (\,},right={\,\right)}] \NC a_{11} \NC a_{12} \NC \dots \NC a_{1n} \NR \NC \vdots \NC \vdots \NC \vdots \NC \vdots \NR \NC a_{i1} \NC a_{i2} \NC

Re: [NTG-context] How to draw a red frame of a row in a matrix?

2012-07-25 Thread Hans Hagen
On 25-7-2012 11:20, dalyoung wrote: Dear all, I made a matrix as follows and I'd like to draw a red frame over the i-th row in a matrix. \startformula \startmatrix[left={\left (\,},right={\,\right)}] \NC a_{11} \NC a_{12} \NC \dots \NC a_{1n} \NR \NC \vdots \NC \vdots \NC \vdots \NC \vdots

Re: [NTG-context] How to draw a red frame of a row in a matrix?

2012-07-25 Thread Otared Kavian
Hi Dalyoung, Is this what you want: \setupcolors[state=start] \def\RedMath{\mframed[frame=on, framecolor=red, offset=2pt, % background=color, % backgroundcolor=lightred, % backgroundoffset=2pt ]} \starttext \startformula \startmatrix[left={\left

Re: [NTG-context] How to draw a red frame of a row in a matrix?

2012-07-25 Thread Wolfgang Schuster
Am 25.07.2012 um 11:43 schrieb Hans Hagen: On 25-7-2012 11:20, dalyoung wrote: Dear all, I made a matrix as follows and I'd like to draw a red frame over the i-th row in a matrix. \startformula \startmatrix[left={\left (\,},right={\,\right)}] \NC a_{11} \NC a_{12} \NC \dots \NC a_{1n

[NTG-context] about \startformula\startalign error

2012-07-22 Thread dalyoung
Dear all, In the following sample file, an error occurs in \startformula\startalign ... \stopalign\stopformula. The similar error occurs if I use \startformula\startmathcases. but \startmatrix works well. Did I do something wrong? Thank you for reading. Best regards, Dalyoung

Re: [NTG-context] about \startformula\startalign error

2012-07-22 Thread Aditya Mahajan
On 2012-07-22, at 8:21 AM, dalyoung hak...@me.com wrote: Dear all, In the following sample file, an error occurs in \startformula\startalign ... \stopalign\stopformula. The similar error occurs if I use \startformula\startmathcases. but \startmatrix works well. Did I do something

Re: [NTG-context] about \startformula\startalign error

2012-07-22 Thread dalyoung
two more questions. 1. In the output of the following code, 'x' in the first column is vertically centered, but matrix in the second column is not(located at top). What option can solve this? \starttable[|c|c|w4cm|w4cm|] \HL \NC A \VL B \VL C \VL D \NC\SR \HL \NC $x$ \VL \startmatrix \NC x' = \NC

Re: [NTG-context] about \startformula\startalign error

2012-07-22 Thread Aditya Mahajan
(and their location can be controlled by location=(low|lohi|high) keys, but for some reason that is not working in a table. \starttable[|c|c|w4cm|w4cm|] The normal syntax is w(4cm) ... \HL \NC A \VL B \VL C \VL D \NC\SR \HL \NC $x$ \VL \startmatrix \NC x' = \NC \NR .\NC y' = \NC \NR \stopmatrix

Re: [NTG-context] \startmatrix bug in beta

2011-05-18 Thread Hans Hagen
}% to \setvalue{\e!stop #1}{\dostopmathmatrix}% If someone wants to correct this in a working document, add \let\stopmatrix\dostopmathmatrix somewhere before \starttext \starttext \startformula \startmatrix[left={\left(\,},right={\,\right)}] \NC 0 \NR \NC 0 \NR \NC 0 \NR % removing this fixes

Re: [NTG-context] \startmatrix bug in beta

2011-05-18 Thread Aditya Mahajan
\setuvalue{\e!stop #1}{\dostopmathmatrix}% to \setvalue{\e!stop #1}{\dostopmathmatrix}% If someone wants to correct this in a working document, add \let\stopmatrix\dostopmathmatrix somewhere before \starttext \starttext \startformula \startmatrix[left={\left(\,},right={\,\right)}] \NC 0 \NR \NC 0

Re: [NTG-context] \startmatrix bug in beta

2011-05-18 Thread Hans Hagen
On 18-5-2011 4:18, Aditya Mahajan wrote: Simpler example: \def\A{\halign \bgroup ## \crcr} \unexpanded\def\B{\crcr\egroup} \def\C{\crcr\egroup} \starttext \ruledvbox{\A A \cr B \cr \B} \ruledvbox{\A A \cr B \cr \C} \ruledvbox{\A A \cr B \cr \relax \C} \stoptext I wonder what the

[NTG-context] \startmatrix bug in beta

2011-05-17 Thread Taco Hoekwater
Hi Hans/ Aditya, With the latest beta, \startmatrix's final \NR creates a superfluous line, resulting in ugly output: \starttext \startformula \startmatrix[left={\left(\,},right={\,\right)}] \NC 0 \NR \NC 0 \NR \NC 0 \NR % removing this fixes the output \stopmatrix \stopformula \stoptext Best

Re: [NTG-context] \startmatrix bug in beta

2011-05-17 Thread Aditya Mahajan
On Tue, 17 May 2011, Taco Hoekwater wrote: Hi Hans/ Aditya, With the latest beta, \startmatrix's final \NR creates a superfluous line, resulting in ugly output: This has been present for a while now, so not introduced by any recent change. I'll try to figure out what is going wrong (I

Re: [NTG-context] \startmatrix bug in beta

2011-05-17 Thread Aditya Mahajan
}{\dostopmathmatrix}% If someone wants to correct this in a working document, add \let\stopmatrix\dostopmathmatrix somewhere before \starttext \starttext \startformula \startmatrix[left={\left(\,},right={\,\right)}] \NC 0 \NR \NC 0 \NR \NC 0 \NR % removing this fixes the output \stopmatrix \stopformula

[NTG-context] huge parentheses with xits

2011-04-16 Thread Yury G. Kudryashov
Hi! The following works well with default font but produces too small parentheses with xits. \doifmodeelse{xits}{\setupbodyfont[xits]} \starttext \startformula \left( \startmatrix[n=1]\dorecurse{10}{\NC 1\NR}\NC 1\NR\stopmatrix \right) \stopformula \stoptext Any ideas

Re: [NTG-context] huge parentheses with xits

2011-04-16 Thread Aditya Mahajan
On Sat, 16 Apr 2011, Yury G. Kudryashov wrote: Hi! The following works well with default font but produces too small parentheses with xits. \doifmodeelse{xits}{\setupbodyfont[xits]} \starttext \startformula \left( \startmatrix[n=1]\dorecurse{10}{\NC 1\NR}\NC 1\NR\stopmatrix \right

Re: [NTG-context] large right brace grouping lines of equations

2011-01-30 Thread Jeong Dalyoung
to your suggestion, we can use \startmatrix for 3,4,5, but how to put text? I googled and found a similar question in LaTeX, but the answer is to use tikz. How do you think? Thank you again. Best regards. Dalyoung

Re: [NTG-context] large right brace grouping lines of equations

2011-01-30 Thread Aditya Mahajan
According to your suggestion, we can use \startmatrix for 3,4,5, but how to put text? Do you also want equation numbers? If so, then that is not supported by ConTeXt at the moment. If you do not want equation numbers, you can use \startformula \startalign[n=1] \NC equation 1 \NR \NC equation 2 \NR

Re: [NTG-context] large right brace grouping lines of equations

2011-01-30 Thread Jeong Dalyoung
Dear Aditya, Thank you for your nice solution. \startformula \startalign[n=1] \NC equation 1 \NR \NC equation 2 \NR \NC \startmatrix[left={\left.}, right={\right\}}, n=1, align=middle] \NC equation 3 \NR \NC equation 4 \NR \NC equation 5 \NR \stopmatrix some text

Re: [NTG-context] large right brace grouping lines of equations

2011-01-29 Thread Aditya Mahajan
in the \startformula\startalign ... \stopalign\stopformula? You can use \startmatrix[left={\left.},right={\right\}] ... \stopmatrix Aditya ___ If your question is of interest to others as well, please add an entry

Re: [NTG-context] extra row at the end of matrix

2010-09-04 Thread Chen Shen
\startformula A = \startmatrix[left={\left(\,},right={\,\right)}] \NC 1 \NC 2 \NR \NC 3 \NC 4 \NR \stopmatrix \stopformula \stoptext = I am using mkiv version: MTXrun | current version: 2010.07.30 11:35 This is LuaTeX, Version beta-0.62.0-2010082314 Removing the last \NR

Re: [NTG-context] extra row at the end of matrix

2010-09-02 Thread Aditya Mahajan
On Thu, 2 Sep 2010, Chen Shen wrote: The matrix from the following example has an extra row at the end. = \starttext \startformula A = \startmatrix[left={\left(\,},right={\,\right)}] \NC 1 \NC 2 \NR \NC 3 \NC 4 \NR \stopmatrix \stopformula \stoptext = I am using

[NTG-context] extra row at the end of matrix

2010-09-01 Thread Chen Shen
The matrix from the following example has an extra row at the end. = \starttext \startformula A = \startmatrix[left={\left(\,},right={\,\right)}] \NC 1 \NC 2 \NR \NC 3 \NC 4 \NR \stopmatrix \stopformula \stoptext = I am using mkiv version: MTXrun | current

Re: [NTG-context] How to move an inframed block?

2009-08-15 Thread rrvhassel
}\startmatrix[left={\left[\,},right={\,\right]}] \NC {\displaystyle \frac{\partial f^{i}}{\partial x^{j}}}(X)\NR \stopmatrix \neq 0$ for every $X\in\Omega$. \stopitemize}{} %\QED}{} \stoptext ### End Example. Question is now: How to move the frames, with the text Definition, Not only inside

[NTG-context] Math align with \startcases

2009-01-19 Thread Otared Kavian
\startmatrix[align={right,left,right},distance=3pt,left={\left\{}, right={\right.}] \NC -\Delta u + g(u) \NC{} = f \NC \quad\mbox{in } \Omega\NR \NC \displaystyle {\partial u \over \partial {\bf n} } \NC{} = h(u) \NC \quad\mbox{on } \partial\Omega \NR \stopmatrix \stopformula \stoptext

Re: [NTG-context] Math align with \startcases

2009-01-19 Thread Aditya Mahajan
...\stopcases? \starttext \startformula \startmatrix[align={right,left,right},distance=3pt,left={\left\{}, right={\right.}] \NC -\Delta u + g(u) \NC{} = f \NC \quad\mbox{in } \Omega\NR \NC \displaystyle {\partial u \over \partial {\bf n} } \NC{} = h(u) \NC \quad\mbox{on } \partial\Omega \NR

Re: [NTG-context] Math align with \startcases

2009-01-19 Thread Otared Kavian
On 19 janv. 09, at 15:38, Aditya Mahajan wrote: On Mon, 19 Jan 2009, Otared Kavian wrote: [...] So my question is: whether one can use \startcases ...\stopcases instead of \startmatrix ... \stopmatrix in order to obtain the result of the plain TeX example? No, but there is not much

Re: [NTG-context] Math align with \startcases

2009-01-19 Thread Aditya Mahajan
On Mon, 19 Jan 2009, Otared Kavian wrote: On 19 janv. 09, at 15:38, Aditya Mahajan wrote: On Mon, 19 Jan 2009, Otared Kavian wrote: [...] So my question is: whether one can use \startcases ...\stopcases instead of \startmatrix ... \stopmatrix in order to obtain the result of the plain

Re: [NTG-context] Math alignment problem

2009-01-10 Thread Aditya Mahajan
\stopcases \stopformula \startformula \startmatrix[align={right,left},distance=3pt,left={\left\{}, right={\right.}] \NC 2x + 3y \NC{} = 10 \NR \NC 3x + 2y \NC{} = 5 \NR \stopmatrix \stopformula \stoptext The {} after the alignment \NC is useful if the next symbol is something that can

Re: [NTG-context] Math alignment problem

2009-01-10 Thread Marcin Borkowski
={right,left},distance=3pt] \NC 2x + 3y \MC{} = 10 \NR \NC 3x + 2y \MC{} = 5 \NR \stopcases \stopformula \startformula \startmatrix[align={right,left},distance=3pt,left={\left\{}, right={\right.}] \NC 2x + 3y \NC{} = 10 \NR \NC 3x + 2y \NC{} = 5 \NR \stopmatrix

Re: [NTG-context] Math alignment problem

2009-01-10 Thread Aditya Mahajan
\startformula \startcases[align={right,left},distance=3pt] \NC 2x + 3y \MC{} = 10 \NR \NC 3x + 2y \MC{} = 5 \NR \stopcases \stopformula \startformula \startmatrix[align={right,left},distance=3pt,left={\left\{}, right={\right.}] \NC 2x + 3y \NC{} = 10 \NR \NC 3x + 2y \NC{} = 5

Re: [NTG-context] LaTeX maths with array...

2008-04-19 Thread Aditya Mahajan
{array} \end{equation} The correct way to translate array in ConTeXt is \startformula \startmatrix[align={right,left}] \NC h \NC \sim \mu M^{2/3}f^{2/3}/r \NR \NC \NC \sim M_{ch}^{5/3} f^{2/3}/r \NR \stopmatrix \stopformula However, I think that the original input is wrong. The autor

Re: [NTG-context] LaTeX maths with array...

2008-04-19 Thread Pau
troubles is of the kind: \begin{equation} \begin{array}{rl} h \sim \mu M^{2/3}f^{2/3}/r\\ \sim M_{ch}^{5/3}f^{2/3}/r\\ \end{array} \end{equation} The correct way to translate array in ConTeXt is \startformula \startmatrix[align={right,left}] \NC h \NC \sim \mu M^{2/3

Re: [NTG-context] typesetting a formula as a figure

2007-11-25 Thread Wolfgang Schuster
On Sat, 24 Nov 2007 14:56:30 +0900 Jeong Dalyoung [EMAIL PROTECTED] wrote: Dear Idris, I have used buffers and \plcadefigures to display formula and figure together. Here is my short sample file. \startbuffer[one] \startformula \startmatrix \NC \NC e_1 \NC e_2 \NC e_3 \NC e_5 \NC e_5

Re: [NTG-context] typesetting a formula as a figure

2007-11-24 Thread Idris Samawi Hamid
Dear Dalyoung, On Fri, 23 Nov 2007 22:56:30 -0700, Jeong Dalyoung [EMAIL PROTECTED] wrote: Dear Idris, I have used buffers and \plcadefigures to display formula and figure together. Here is my short sample file. \startbuffer[one] \startformula \startmatrix \NC \NC e_1 \NC e_2 \NC e_3 \NC

Re: [NTG-context] typesetting a formula as a figure

2007-11-24 Thread Aditya Mahajan
] \startformula \startmatrix \NC \NC e_1 \NC e_2 \NC e_3 \NC e_5 \NC e_5 \NR \NC u \NC 0 \NC 1 \NC 1 \NC 0 \NC 1 \NR \NC v \NC 1 \NC 0 \NC 1 \NC 0 \NC 0 \NR \NC w \NC 1 \NC 1 \NC 0 \NC 1 \NC 0 \NR \NC x \NC 0 \NC 0 \NC 1 \NC 0 \NC 1 \NR \NC y \NC 1 \NC 0 \NC 0 \NC 1 \NC 0 \NR \stopmatrix

Re: [NTG-context] typesetting a formula as a figure

2007-11-23 Thread Jeong Dalyoung
Dear Idris, I have used buffers and \plcadefigures to display formula and figure together. Here is my short sample file. \startbuffer[one] \startformula \startmatrix \NC \NC e_1 \NC e_2 \NC e_3 \NC e_5 \NC e_5 \NR \NC u \NC 0 \NC 1 \NC 1 \NC 0 \NC 1 \NR \NC v \NC 1 \NC 0 \NC 1 \NC 0 \NC 0

[NTG-context] hairline in a matrix

2007-09-04 Thread Peter Schorsch
Hi, I could not figure out how to add a hairline between two rows of a matrix. Following example is compiling but only results in a bigger vertical space. Infos/Hints are welcome... \startformula \startmatrix    \NC {a_1 } \NC {a_2 } \NC {a_3 }  \NC  \ldots      \NC {a_X }  \NR    \NC {b_1

Re: [NTG-context] hairline in a matrix

2007-09-04 Thread Aditya Mahajan
On Wed, 5 Sep 2007, Peter Schorsch wrote: Hi, I could not figure out how to add a hairline between two rows of a matrix. Following example is compiling but only results in a bigger vertical space. Infos/Hints are welcome... \startformula \startmatrix    \NC {a_1 } \NC {a_2 } \NC {a_3 } Â

Re: [NTG-context] extra math symbols and alignment

2007-08-01 Thread WN
option i.e. when I say \startmatrix[align={right, etc }] everything is aligned to the right but the other aligment options are ignored. When I substitute *[modern]* with *[default] *as in \definetypeface[MyFace] [mm] [math] [modern] *[default] *[encoding=ec] In this instance all

Re: [NTG-context] extra math symbols and alignment

2007-08-01 Thread WN
the bug: \definetypeface[mainface] [rm] [serif] [modern] [default] [encoding=texansi] \definetypeface[mainface] [mm] [math] [modern] [modern] [encoding=texansi] \setupbodyfont[mainface,11pt] \loggingall \starttext \startformula A = \startmatrix[align={left,right}] \NC 11 \NC 2 \NR \NC 2 \NC -5

Re: [NTG-context] extra math symbols and alignment

2007-08-01 Thread Aditya Mahajan
to find bug. First, to illustrate the bug: \definetypeface[mainface] [rm] [serif] [modern] [default] [encoding=texansi] \definetypeface[mainface] [mm] [math] [modern] [modern] [encoding=texansi] \setupbodyfont[mainface,11pt] \loggingall \starttext \startformula A = \startmatrix[align={left

Re: [NTG-context] extra math symbols and alignment

2007-07-31 Thread Aditya Mahajan
to the aligment I specify except for the first option i.e. when I say \startmatrix[align={right, etc }] everything is aligned to the right but the other aligment options are ignored. When I substitute *[modern]* with *[default] *as in \definetypeface[MyFace] [mm] [math] [modern

Re: [NTG-context] \startalign and underline

2007-02-13 Thread Aditya Mahajan
a \NC - \NC b \NC = \NC 3 \NR \noalign{\hrule} \NC 2a \NC \NC \NC = \NC 12 \NR \stopalign \stopformula \stoptext Hmm... the width of the rule is too long, so lets use something with a fixed width \starttext \startformula \startmatrix[n=5] \NC a \NC + \NC b \NC = \NC 9 \NR \NC

Re: [NTG-context] \startalign and underline

2007-02-13 Thread Mojca Miklavec
lets use something with a fixed width \starttext \startformula \startmatrix[n=5] \NC a \NC + \NC b \NC = \NC 9 \NR \NC a \NC - \NC b \NC = \NC 3 \NR \noalign{\hrule} \NC 2a \NC \NC \NC = \NC 12 \NR \stopmatrix \stopformula \stoptext Hmm... distance and alignment are wrong

Re: [NTG-context] delimiter bigger then \Biggr

2007-01-24 Thread Wolfgang Schuster
\startmatrix[left=\left.,right=\right\},style=\rm] \NC A \NC AA \NR \NC B \NC BB \NR \NC C \NC CC \NR \NC D \NC DD \NR \NC E \NC EE \NR \stopmatrix \text{ description} \stopformula \stoptext Wolfgang ___ ntg-context mailing list ntg-context@ntg.nl http

Re: [NTG-context] delimiter bigger then \Biggr

2007-01-24 Thread Jano Kula
\eTD\eTR \eTABLE \stoptext you can misuse the mathmode. Hope not. This is only the part of the story -- minimal example. Delimiter should be the part of more complex table. \starttext \startformula \startmatrix[left=\left.,right=\right\},style=\rm] \NC A \NC AA \NR \NC

Re: [NTG-context] New math feature requests

2006-08-08 Thread Aditya Mahajan
a matrix failed because: 1. Matrix does not see beyond the \NCs as align. Comapre the output of \startformula \startalign[n=2] \NC a \NC = bx + c \NR \NC \NC + ey \NR \stopalign \stopformula with \startformula \startmatrix[n=2,distance=0pt, style=\displaystyle] \NC a \NC = bx + c \NR

Re: [NTG-context] Updated My Way on math alignment

2006-08-05 Thread WN
\cdot a + \lambda \cdot b \NC \NR \stopcases \text{(distributieve eigenschappen)} \stopformula or use a matrix (only one column) \startformula \startmatrix[left={\left.},right={\right\}}] \NC (\lambda + \mu ) \cdot a = \lambda \cdot a + \mu \cdot a \NR \NC \lambda ( a + b

Re: [NTG-context] Updated My Way on math alignment

2006-08-04 Thread Aditya Mahajan
{(distributieve eigenschappen)} \stopformula or use a matrix (only one column) \startformula \startmatrix[left={\left.},right={\right\}}] \NC (\lambda + \mu ) \cdot a = \lambda \cdot a + \mu \cdot a \NR \NC \lambda ( a + b ) = \lambda \cdot a + \lambda \cdot b\NR \stopmatrix \text

Re: [NTG-context] align question

2006-07-18 Thread Aditya Mahajan
Context supports everything that latex array provides, with a slightly different syntax. Some extract from the update on myway on alignment (I am still working on it) % \def\ShowExample % {\hairline %\typebuffer %\hairline %\getbuffer} \CONTEXT\ provides \tex{startmatrix} for generic

Re: [NTG-context] align question

2006-07-18 Thread Bruce H. Wagner
appear to work as it should. Sorry about the false alarm. I'll try out the \startmatrix options as well to see if those will fit my needs better for some constructions. Thanks for the detailed syntax. ---Bruce At 8:12 AM -0700 7/18/06, Aditya Mahajan wrote: On Mon, 17 Jul 2006, Hans Hagen

[NTG-context] More Feature Requests for math

2006-05-17 Thread Aditya Mahajan
interesting to see here \NR \NC \int_0^1 x - 3 d\,x \NC Integral is in text mode \NR \stopcases \stopformula \startformula \startmatrix[n=2] \NC x \NC y \NR \NC \int_0^1 x - 3 d\,x \NC 20 \NR \stopmatrix \stopformula Both integrals are in textstyle. It will be nice if one had

Re: [NTG-context] ConTeXt 2006.04.24 released

2006-04-25 Thread Aditya Mahajan
in amsmath, so can not comment on whether the same is doable with context. Another missing feature (I will send a detailed feature request soon) is that matrices are always center aligned. I would like to have \startmatrix[location=top|bottom|middle] to faithfully reproduce aligned series

Re: [NTG-context] Feature Request: mathmatrix enhancement

2006-03-27 Thread Hans Hagen
intercolumn spacing correct while still allowing endlessly repeating columns. Aditya Mahajan wrote: Hi, Is it possible to have allow math matrix column alignments to be configurable, on the lines of align={left,left} of \startalign. I want to be albe to say \startformula \startmatrix

Re: [NTG-context] Feature Request: mathmatrix enhancement

2006-03-21 Thread Taco Hoekwater
correct while still allowing endlessly repeating columns. Aditya Mahajan wrote: Hi, Is it possible to have allow math matrix column alignments to be configurable, on the lines of align={left,left} of \startalign. I want to be albe to say \startformula \startmatrix[align={right,left}] \NC x \NC

Re: [NTG-context] Feature Request: mathmatrix enhancement

2006-03-21 Thread Aditya Mahajan
\startmatrix[align={right,left}] \NC x \NC = a + d \NR \NC y \NC = d \NR \stopmatrix \stopformula to give me x = a + d y = d This is a contrived example. The actual equation that I want to type is \startformula \text{Let }{\cal R} = \bigcup_{P_{X_1},P_{X_2

[NTG-context] Feature Request: mathmatrix enhancement

2006-03-20 Thread Aditya Mahajan
Hi, Is it possible to have allow math matrix column alignments to be configurable, on the lines of align={left,left} of \startalign. I want to be albe to say \startformula \startmatrix[align={right,left}] \NC x \NC = a + d \NR \NC y \NC = d \NR \stopmatrix \stopformula to give me